﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YXShop.Model.Store
{  
    [Serializable]
   
    public class StoreMessage
    {
        public StoreMessage()
        {
        }
        #region model
        private Nullable<int> _id = 0;
        /// <summary>
        /// 主键
        /// </summary>
        public Nullable<int> Id
        {
            get { return _id; }
            set { _id = value; }
        }
        private Nullable<int> _senderid;
        /// <summary>
        /// 发送者ID
        /// </summary>
        public Nullable<int> SenderId
        {
            get { return _senderid; }
            set { _senderid = value; }
        }
        private Nullable<int> _messagetype;
        /// <summary>
        /// 发送类型，如果是0，表示总部用户发出的消息，所有门店和销售中心都能看到
        /// 如果是1，表示销售中心发出的消息，并且如果一个门店的销售中心ID等于storecenterid，那么就门店就可以看到这条消息
        /// </summary>
        public Nullable<int> MessageType
        {
            get { return _messagetype; }
            set { _messagetype = value; }
        }


        private string _message;
        /// <summary>
        /// 消息
        /// </summary>
        public string Message
        {
            get { return _message; }
            set { _message = value; }
        }
        private Nullable<DateTime> _sendertime;
        /// <summary>
        /// 发送时间
        /// </summary>
        public Nullable<DateTime> SenderTime
        {
            get { return _sendertime; }
            set { _sendertime = value; }
        }

        private Nullable<int> _storecenterid;
        /// <summary>
        /// 只有当messagetype为1时有用
        /// </summary>
        public Nullable<int> Storecenterid
        {
            get { return _storecenterid; }
            set { _storecenterid = value; }
        }

        private string _messageTitle;
        /// <summary>
        /// 消息标题
        /// </summary>
        public string MessageTitle
        {
            get { return _messageTitle; }
            set { _messageTitle = value; }
        }
        private string _accessory1;
        /// <summary>
        /// 附件1的路径
        /// </summary>
        public string Accessory1
        {
            get { return _accessory1; }
            set { _accessory1 = value; }
        }
        private string _accessory2;
        /// <summary>
        /// 附件2的路径
        /// </summary>
        public string Accessory2
        {
            get { return _accessory2; }
            set { _accessory2 = value; }
        }
        private string _accessory3;
        /// <summary>
        /// 附件3的路径
        /// </summary>
        public string Accessory3
        {
            get { return _accessory3; }
            set { _accessory3 = value; }
        }
        private string _accessory4;
        /// <summary>
        /// 附件4的路径
        /// </summary>
        public string Accessory4
        {
            get { return _accessory4; }
            set { _accessory4 = value; }
        }
        private string _accessory5;
        /// <summary>
        /// 附件2的路径
        /// </summary>
        public string Accessory5
        {
            get { return _accessory5; }
            set { _accessory5 = value; }
        }
        private int? _messagecategory;
        /// <summary>
        /// 消息的类别，1表示公告，2表示资料下载
        /// </summary>
        public int? MessageCategory
        {
            get { return _messagecategory; }
            set { _messagecategory = value; }
        }
        #endregion
    }
}
